package net.ojbk.util;

import java.awt.Color;
import java.util.Random;


/**
 * public static Color getRandomColor() { // 获取一种随机颜色
 * public static Color getReverseColor(Color c) { // 获取 颜色c的反色
 * @author twobox
 *
 */
public class ColorTool {
	public static Random random = new Random();

	public static Color getRandomColor() { // 获取一种随机颜色
		return new Color(random.nextInt(255), random.nextInt(255), random.nextInt(255));
	}
	
	public static Color getReverseColor(Color c) { // 获取 颜色c的反色
		return new Color(255 - c.getRed(), 255 - c.getGreen(), 255- c.getBlue());
	}
	
}
